{if condition ="strtolower(request()->controller()) == 'integral' && strtolower(request()->action()) == 'log'"}
<!--积分日志列表-->
{volist name="dataList" id="vo"}
<tr>
    <td><a href="#">{$key+1}</a></td>
    <td>{$vo.nickname}</td>
    <td>{$vo.remark}</td>
    <td>
        {if condition="$vo.change == 1"}
        + {$vo.integral}
        {elseif condition="$vo.change == 2"/}
        - {$vo.integral}
        {/if}
    </td>
    <td>{$vo.cur_integral}</td>
    <td>{$vo.create_time|date="Y-m-d H:i",###}</td>
</tr>
{/volist}
{/if}


{if condition ="strtolower(request()->controller()) == 'integral' && strtolower(request()->action()) == 'product'"}
<!--积分商城产品-->
{volist name="dataList" id="vo"}
<tr>
    <td><a href="#">{$key+1}</a></td>
    <td>{$vo.name}</td>
    <td>{$vo.integral}</td>
    <td><img src="{$vo.coverimg}" style="width:50px;height:50px;"></td>
    <td>{$vo.create_time|date="Y-m-d H:i",###}</td>
    <td>
        {if condition="$vo.ispublish == 0"}
        <span class="label label-danger">未发布</span>
        {elseif condition="$vo.ispublish == 1"/}
        <span class="label label-success">已发布</span>
        {/if}
    </td>
    <td data-pid="{$vo.id}">
        <a href="{:url('Integral/productadd',array('id'=>$vo['id']))}" target="_blank">
            <button class="btn btn-primary btn-xs" title="编辑"><i class="icon-pencil"></i></button>
        </a>
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="integral_product" data-fieldname="ishidden" data-value="1"
           data-text="确定删除吗？删除后将不可恢复">
            <button class="btn btn-danger btn-xs" title="删除"><i class="icon-trash"></i></button>
        </a>
        {if condition="$vo.ispublish == 0"}
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="integral_product" data-fieldname="ispublish" data-value="1">
            <button class="btn btn-warning btn-xs" title="发布"><i class="icon-eye-open"></i></button>
        </a>
        {elseif condition="$vo.ispublish == 1"/}
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename="integral_product" data-fieldname="ispublish" data-value="0">
            <button class="btn btn-warning btn-xs" title="下架"><i class="icon-eye-close"></i></button>
        </a>
        {/if}
    </td>
</tr>
{/volist}
{/if}

{if condition ="strtolower(request()->controller()) == 'integral' && strtolower(request()->action()) == 'order'"}
<!--订单列表-->
{volist name="dataList" id="vo"}
<tr>
    <td><a href="#">{$key+1}</a></td>
    <td>{$vo.ordernumber}</td>
    <td>{$vo.nickname}</td>
    <td>{$vo.product_name}</td>
    {if condition="$vo.pay eq 0"}
    <td>{$vo.pay_integral}积分 </td>
    {elseif condition="$vo.pay eq 1"/}
    <td>{$vo.pay_integral}积分,微信:{$vo.pay_money}元</td>
    {elseif condition="$vo.pay eq 2"/}
    <td>{$vo.pay_integral}积分,余额:{$vo.pay_money}元 </td>
    {/if}
    <td>{$vo.linkman} {$vo.linktel} {$vo.address}</td>
    <td>{$vo.create_time|date="Y-m-d H:i",###}</td>
    <td>
        {if condition="$vo.status == 0"}
        <span class="label label-warning">待付款</span>
        {elseif condition="$vo.status == 1"/}
        <span class="label label-success">待发货</span>
        {elseif condition="$vo.status == 2"/}
        <span class="label label-primary">已发货</span>
        {elseif condition="$vo.status == 3"/}
        <span class="label label-info">已完成</span>
        {/if}
    </td>
    <td data-pid="{$vo.id}">
        <a href="{:url('Integral/orderdetail',array('id'=>$vo['id']))}" target="_blank">
            <button class="btn btn-primary btn-xs" title="编辑"><i class="icon-pencil"></i></button>
        </a>
        <a href="#deal" data-url="{:url('Member/updatefield')}" data-tablename=integral_order" data-fieldname="ishidden" data-value="1"
           data-text="确定删除吗？删除后将不可恢复">
            <button class="btn btn-danger btn-xs" title="删除"><i class="icon-trash"></i></button>
        </a>
    </td>
</tr>
{/volist}
{/if}